package visitor.pattern.simple.browser.visitors.base;

import visitor.pattern.simple.browser.internet.Baidu;
import visitor.pattern.simple.browser.internet.Bilibili;
import visitor.pattern.simple.browser.internet.Htmls;
import visitor.pattern.simple.browser.internet.QQZone;

import java.util.ArrayList;

/**
 * @Author: Coderlyz
 * @Date: 2023/4/3 20:06
 */
public abstract class AbstractBaseVisitor implements BaseVisitor {

    @Override
    public void visitingQQZone(QQZone qqZone) {

    }

    @Override
    public void visitingBilibili(Bilibili bilibili) {

    }

    @Override
    public void visitingBaidu(Baidu baidu) {

    }

    @Override
    public void visit(ArrayList htmlList) {
        for (Object htmls : htmlList){
            ((Htmls)htmls).accept(this);
        }
    }
}
